for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
// ReadOnlyBufferException.js
"use strict";
// :: DEPENDENCIES
// load native dependencies
const path = require("path");
// load local dependencies
const UnsupportedOperationException = require(path.join(__dirname, "UnsupportedOperationException.js"));
// :: BASIC SETUP
/**
* Thrown to indicate a problem with time-zone configuration.
* @param {String} message - The message describing the <tt>ReadOnlyBufferException</tt>.
* @param {Number} code - The unique code that identifies the cause of the <tt>ReadOnlyBufferException</tt>.
* @augments UnsupportedOperationException
* @constructor
* @see https://docs.oracle.com/javase/8/docs/api/java/nio/ReadOnlyBufferException.html
*/
const ReadOnlyBufferException = function (message, code) {
UnsupportedOperationException.call(this, message, code);
};
// :: INHERITANCE
// set the UnsupportedOperationException 'class' as the parent in the prototype chain
ReadOnlyBufferException.prototype = Object.create(UnsupportedOperationException.prototype);
ReadOnlyBufferException.prototype.constructor = UnsupportedOperationException;
// :: PROTOTYPE
* The name used to identify a <tt>ReadOnlyBufferException</tt>.
* @type {String}
* @default
ReadOnlyBufferException.prototype.name = "ReadOnlyBufferException";
// :: EXPORT
// export the ReadOnlyBufferException 'class'
module.exports = ReadOnlyBufferException;